package ball;

import java.util.Random;

public class Ball {
	protected int col;
	protected int row;
	protected char type;
	public Ball(){
		this.col=0;
		this.row=0;
		this.type='0';
	}
	public Ball(int r, int c, char t){
		this.row = r;
		this.col = c;
		this.type = t;
	}
	public int getCol(){
		return col;
	}
	public int getRow(){
		return row;
	}
	public char getType(){
		return type;
	}
	public void setCol(int c){
		this.col = c;
	}
	public void setRow(int r){
		this.row = r;
	}
	public void setType(char t){
		this.type = t;
	}
	public boolean isSpecial(){
		if(this.type=='0'){
			return true;
		}
		return false;
	}
	public void changeToNormal(){
		Random random = new Random();
		int randomNumber = random.nextInt(4) + 1;
		char type = (char) (randomNumber+'0');
		this.setType(type);
	}
}
